/***************************************************************************
 *
 *   Copyright (C) 2006 by Willem van Straten
 *   Licensed under the Academic Free License version 2.1
 *
 ***************************************************************************/

#include "Pulsar/CalibratorSpectrum.h"

Pulsar::CalibratorSpectrum::Interface::Interface (CalibratorSpectrum* instance)
{
  if (instance)
    set_instance (instance);

  add( &CalibratorSpectrum::get_subint,
       &CalibratorSpectrum::set_subint,
       "subint", "Sub-integration to plot" );

  add( &CalibratorSpectrum::get_plot_Ip,
       &CalibratorSpectrum::set_plot_Ip,
       "Ip", "Plot total and polarized intensities" );

  add( &CalibratorSpectrum::get_plot_total,
       &CalibratorSpectrum::set_plot_total,
       "sum", "Plot sum of on- and off-pulse fluxes" );

  add( &CalibratorSpectrum::get_plot_low,
       &CalibratorSpectrum::set_plot_low,
       "off", "Plot off-pulse flux" );

  add( &CalibratorSpectrum::get_norm_inv,
       &CalibratorSpectrum::set_norm_inv,
       "norm", "Normalize Stokes parameters by invariant" );

  add( &CalibratorSpectrum::get_outlier_threshold,
       &CalibratorSpectrum::set_outlier_threshold,
       "cut", "Threshold (rms) used to reject outliers" );
}
